package com.woniuxy.dudugua.controller;

import com.woniuxy.dudugua.service.OverseasService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.woniuxy.dudugua.util.Result;

import javax.annotation.Resource;

/**
 * @author JadeFang
 * @Deprecated  海淘馆
 *
 */
@RestController
public class OverseasController {
    @Resource
    private OverseasService  overseasService;
    @RequestMapping("overseas")
    public Result selectByProductOverseas() throws Exception{
            return new Result("200","success",null,overseasService.selectByProductOverseas());
    }

    //查询所有一级id为2的子三级id
    @RequestMapping("overseasSon")
    public  Result  selectByProductOverseasSon()  throws  Exception{
        return   new Result("200","success",null,overseasService.selectByProductOverseasSon());
    }

}
